home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8617 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: ports
  5. Date: Tue, 05 Mar 96 12:42:10 GMT
  6. Organization: none
  7. Message-ID: <826029730snz@genesis.demon.co.uk>
  8. References: <4hes6g$2fp@gsusgi1.gsu.edu>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <4hes6g$2fp@gsusgi1.gsu.edu>
  15.            matmrlx@gsusgi1.gsu.edu "Michael R. Lauer" writes:
  16.  
  17. >I have a program running on SCO UNIX and AIX that dials the modem and sends
  18. >a bunch of messages. It works fine for days and hundreds of messages, then
  19. >`for no apparent reason' the port goes `sour'. By that I mean the simple
  20. >fd = open(acu, O_RDWR | O_NONBLOCK) fails with errno == 9.
  21.  
  22. open() and tty's are not a part of the C language and are off-topic for
  23. comp.lang.c.  Try comp.unix.programmer, comp.unix.sco.programmer or
  24. comp.unix.aix. If the problem occurs on just one of the OSs try
  25. comp.unix.programmer otherwise try the OS specific newsgroup on which it
  26. fails. State whether you are using the standard system serial ports
  27. and drivers or 3rd party ones.
  28.  
  29. Error 9 is EBADF on SCO which isn't a sensible error code for open(). Check
  30. whether that error code was generated by open() or by a later call to which
  31. you passed a bad handle after open failed (but follow-up to an appropriate
  32. newsgroup).
  33.  
  34. -- 
  35. -----------------------------------------
  36. Lawrence Kirby | fred@genesis.demon.co.uk
  37. Wilts, England | 70734.126@compuserve.com
  38. -----------------------------------------
  39.